<template>
  <div class="">
    <date :tipDivText='tipDivText' @dateClick="dateClick" @dateBack="dateBack" :max="max" :openTime="openTime"></date>
  </div>
</template>

<script>
  import date from '../../components/date.vue';

  export default{
    name: 'trainDate',
    data(){
      return {
        back: '',
        tipDivText: '',
      }
    },
    methods: {
      dateBack(){

      },
      dateClick(msg){
        this.dateShow = false;
        this.date = msg;
        this.$store.state.train.travelTime = msg;
        this.$store.state.train.openTime = this.$store.state.train.travelTime;
        this.$router.go(-1);
      },
    },
    computed: {
      max(){
        var k = '364'.future();
        return k;
      },
      openTime(){
        return this.$store.state.train.openTime
      }
    },
    components: {date},
  }
</script>
